how to count unique dates based on condition

join shbcf.ru